Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntlmrelayx.py: Hide unnecessary 'Unsupported MechType' log messages #1647

Merged

Conversation

rtpt-erikgeiser
Copy link
Contributor

This PR changes the log level for Unsupported MechType messages from CRITICAL to DEBUG. These messages occur almost exclusively during SMB authentication when the counterpart prefers Kerberos over NTLM. I think there is no reason that these messages should be displayed outside of debug mode because they imply that something is wrong when rejecting the Kerberos preference is perfectly normal when NTLM is negotiated.

@anadrianmanrique anadrianmanrique added the low Low priority item label Nov 23, 2023
@gabrielg5
Copy link
Collaborator

Hi @rtpt-erikgeiser,
yeah, I think you are right. It makes more sense logging those messages as debug.

Looked for that same logging in other files and found

LOG.error("Unsupported MechType '%s'" % mechStr)

Can be updated as well to align everything
Thank you!

@gabrielg5 gabrielg5 added the waiting for response Further information is needed from people who opened the issue or pull request label Dec 5, 2024
@rtpt-erikgeiser rtpt-erikgeiser force-pushed the fix_unsupported_mechtype_log_level branch from a54edd8 to 38bbf77 Compare December 5, 2024 14:28
@rtpt-erikgeiser
Copy link
Contributor Author

Thanks for the review, I changed the line in wcfrelayserver.py.

@gabrielg5 gabrielg5 removed the waiting for response Further information is needed from people who opened the issue or pull request label Dec 5, 2024
@gabrielg5 gabrielg5 merged commit bc934b0 into fortra:master Dec 5, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low Low priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants